Method Name |
Parameter |
Return Type |
Usage |
Example |
funGetDriver |
desktopAppPath:String |
WebDriver |
To get driver |
driver = DesktopDriver.funGetDriver(desktopAppPath); |
killOpenDrivers |
|
void |
To kill open drivers |
DesktopDriver.killOpenDrivers(); |
DesktopElementToBy |
webEle:WebElement |
By |
|
By byEle = DesktopHandlers.DesktopElementToBy(webEle); |
click |
locator:WebElement |
void |
For click action |
DesktopHandlers.click(locator); |
enterText |
locator:WebElement,value:String |
void |
For type action |
DesktopHandlers.enterText(locator, value); |
compareText |
strActualText:String,strCompText:String |
boolean |
To compare two text |
DesktopHandlers.compareText(strActualText,strCompText) |
existText |
locator : WebElement |
boolean |
To check whether text value exist for the locator |
DesktopHandlers.existText(locator) |
clearText |
locator : WebElement |
void |
To clear text |
DesktopHandlers.clearText(locator) |
radioBtnIsSelected |
locator : WebElement |
boolean |
|
DesktopHandlers.radioBtnIsSelected(locator) |
radioBtnIsNotSelected |
locator : WebElement |
boolean |
|
DesktopHandlers.radioBtnIsNotSelected(locator) |
doubleClick |
locator : WebElement |
void |
For double click action |
DesktopHandlers.doubleClick(locator) |
selectValListBox |
locator : WebElement,ListValue:String |
void |
|
DesktopHandlers.selectValListBox(locator,ListValue) |
multiSelectbyIndex |
locator : WebElement,value:String |
void |
|
DesktopHandlers.multiSelectbyIndex(locator,value) |
scrollSelectValListBox |
locator : List<WebElement>,value:String |
void |
|
DesktopHandlers.scrollSelectValListBox(locator,value) |
verifyText |
locator : WebElement, value : String |
void |
To verify Text |
DesktopHandlers.verifyText(locator,value) |
waitForElement |
webEle : WebElement |
void |
|
DesktopWaitHelper.waitForElement(locator); |
scrollToElement |
locator : By |
void |
|
DesktopWaitHelper.scrollToElement(locator); |